ComponentOne Bitmap for WPF
C1.WPF.DX.4.5.2 Assembly / C1.Util.DX.Direct3D11 Namespace / DeviceContext Class / UpdateSubresource Method / UpdateSubresource<T>(T[],Resource,Int32,Int32,Int32,Nullable<ResourceRegion>) Method
Type of the data to upload
A reference to the data to upload.
The destination resource.
The destination subresource.
The row pitch.
The depth pitch.
A region that defines the portion of the destination subresource to copy the resource data into. Coordinates are in bytes for buffers and in texels for textures.

In This Topic
    UpdateSubresource<T>(T[],Resource,Int32,Int32,Int32,Nullable<ResourceRegion>) Method
    In This Topic
    Copies data from the CPU to to a non-mappable subresource region.
    Syntax
    'Declaration
     
    Public Overloads Sub UpdateSubresource(Of T As {New, Struct})( _
       ByVal data() As T, _
       ByVal resource As Resource, _
       Optional ByVal subresource As Integer, _
       Optional ByVal rowPitch As Integer, _
       Optional ByVal depthPitch As Integer, _
       Optional ByVal region As Nullable(Of ResourceRegion) _
    ) 
    public void UpdateSubresource<T>( 
       T[] data,
       Resource resource,
       int subresource,
       int rowPitch,
       int depthPitch,
       Nullable<ResourceRegion> region
    )
    where T: new(), struct

    Parameters

    data
    A reference to the data to upload.
    resource
    The destination resource.
    subresource
    The destination subresource.
    rowPitch
    The row pitch.
    depthPitch
    The depth pitch.
    region
    A region that defines the portion of the destination subresource to copy the resource data into. Coordinates are in bytes for buffers and in texels for textures.

    Type Parameters

    T
    Type of the data to upload
    See Also